from selenium import webdriver
import time

from selenium.webdriver import Keys
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://www.bilibili.com")
driver.find_element(By.CLASS_NAME, "nav-search-input").send_keys("新宝岛猛男版")
driver.find_element(By.CLASS_NAME, "nav-search-btn").click()
time.sleep(5)

